package com.sc.userspringboot.service;

import com.sc.userspringboot.pojo.Posts;
import com.baomidou.mybatisplus.extension.service.IService;
import org.apache.ibatis.annotations.Param;


import java.util.List;


/**
 * <p>
 * 用户发布帖子主表 服务类
 * </p>
 *
 * @author user
 * @since 2025-09-19 06:25:46
 */
public interface IPostsService extends IService<Posts> {

    List<Posts> selectRandomPosts(@Param("limit") int limit);

    List<Posts> getByPostId();

    List<Posts> getByPostId_limit(@Param("limit") int limit);

    Posts getByPostId_id(@Param("postId") Integer postId);

    List<Posts> getUserPosts(List<Integer> postIds);

    List<Posts> getUserPostsAndAuthor(List<Integer> postIds);

    List<Posts> getSort();

    List<Posts> getGamesId(@Param("gameId") Integer gameId, @Param("page") Integer page);

    List<Posts> getPublishTime(@Param("page") Integer page);

}
